package work.konbai.education.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 考勤详情信息表
 *
 * @author KonBAI
 * @version 1.0
 * Create by 2021/3/3 16:05
 */
@Data
@TableName("min_attendance_detail")
@ApiModel(value = "AttendanceDetail对象", description = "考勤详情信息表")
public class AttendanceDetail implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 考勤表ID
	 */
	@NotNull(message = "请选择考勤表")
	@ApiModelProperty(value = "考勤表ID")
	private Long attendanceId;
	/**
	 * 学生ID
	 */
	@NotNull(message = "请选择学生")
	@ApiModelProperty(value = "学生ID")
	private Long studentId;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;
}
